<template>
  <div>
    <h2>转账页面</h2>
    <div>
      账号姓名：<el-input v-model="water.name" style="width: 300px" disabled></el-input><br>
      账号号码：<el-input v-model="water.number" style="width: 300px" disabled></el-input><br>
      账号余额：<el-input v-model="water.balance" style="width: 300px" disabled></el-input><br>
      开户时间：<el-input v-model="water.beginTime" style="width: 300px" disabled></el-input><br>
      对方姓名：<el-input v-model="water.nameYour" style="width: 300px"></el-input><br>
      对方账号号码：<el-input v-model="water.numberYour" style="width: 300px"></el-input><br>
      转账金额：<el-input v-model="water.moneyUser" style="width: 300px"></el-input><br>
      <el-button @click="seyn">存款</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TurnView',
  data () {
    return {
      water: {
        id: null,
        name: '',
        number: '',
        balance: null,
        beginTime: '',
        moneyUser: null,
        moneyEnd: null,
        type: '',
        nowTime: '',
        acid: null,
        nameYour: '',
        numberYour: null
      },
      account: {
        id: null,
        name: '',
        number: '',
        balance: null,
        beginTime: '',
        moneyUser: null
      }
    }
  },
  update () {
    this.axios.post('/account/updateAc2', this.account)
      .then(res => {
        console.log(res.data)
      })
  },
  created () {
    this.axios.get('/account/getAccount', { params: { id: this.$route.query.id } })
      .then(res => {
        this.water = res.data.jdata
        this.account = res.data.jdata
        this.account.id = res.data.jdata.id
        this.water.acid = res.data.jdata.id
        this.water.id = null
      })
  }
}
</script>

<style scoped>

</style>
